import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'

Vue.use(Vuex)

//应用初始状态
const state = {
  accountId:''
}
// 定义所需的 mutations
const mutations = {
  SET_ACCOUNTID: (state, accountId) => {
    state.accountId = accountId;
  },

}
const actions = {

}
// 创建 store 实例
export default new Vuex.Store({
  actions,
  getters,
  state,
  mutations
})
